// 引入图片

let quanzhi = require('@/assets/img/home/quanzhi.png')
let jianzhi = require('@/assets/img/home/jianzhi.png')
let linshi = require('@/assets/img/home/linshi.png')
let jianli = require('@/assets/img/home/jianli.png')

export const jobTypeList = [
  {
    id: '1',
    title: '找全职',
    icon: quanzhi
  },
  {
    id: '2',
    title: '找兼职',
    icon: jianzhi
  },
  {
    id: '3',
    title: '找小时工',
    icon: linshi
  },
  /*{
    id: '4',
    title: '人才市场',
    icon: jianli
  }*/
];

export const jobTypeArr = [
  {
    id: '1',
    title: '全职',
  },
  {
    id: '2',
    title: '兼职',
  },
  {
    id: '3',
    title: '小时工',
  },
]

// 定义常量
export const idCardReg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
// 手机号正则
export const phoneReg = /^1\d{10}$/;

export const base_url = 'https://www.jinpin.love/#/welcome';
export const base_url_company = 'https://www.jinpin.love/#/company';

export const base_url_path = 'https://www.jinpin.love';


export const feeUnitObj = {
  '0': '元 / 时',
  '1': '元 / 月',
  '2': '元 / 人',
  '3': '元 / 天',
}

export const recruitStatusObj = {
  '0': '默认',
  '1': '在招',
  '2': '停招'
}

export const recordTypeObj_search = {
  hasWorkedList: '已工作',
  collectionHistory:'收藏记录',
  browsingHistory:'浏览记录',
  lendMoney: '申请借支',
  wageSettlement: '发薪',
  hasSignUpList: '已报名',
  recommendPersons: '我的下家',
  myAttention: '我的关注',
  ratingList: '评分、评价',
  recruitStaff: '招聘信息、报名人姓名',
  upstreamDownstreamManagement: '公司名'
}

export const recordTypeObj_query = {
  hasWorkedList: '已工作',
  collectionHistory:'收藏记录',
  browsingHistory:'浏览记录',
  lendMoney: '申请借支',
  wageSettlement: '发薪',
  hasSignUpList: '已报名',
  recommendPersons: '我的下家',
  myAttention: '关注',
  ratingList: '评分、评价'
}

/*
 * todo 后续删除：  0 是false; 1是 true
 * */
export const obj = {
  rowid: 5,
  id: '5d579f549c3e40829d784dc8bb8be1b5',
  ids: 38,
  enterprise_name: '海底捞火锅店',
  recruiting_position: '服务员',
  min_comprehensive_salary: 2582,
  max_comprehensive_salary: 5000,
  payway_id: '11',
  job_category_id: '1',
  create_time: '2020-12-07 11:06:22',
  status: 1,
  work_address_fulle_address: '安徽省合肥市合肥新站高新技术产业开发区三十头街道魏武大道',
  generation_instructions: '阿拉就么有咋啦啊集聚区NONO族',
  generation_of_commission: '12',
  fee_unit: 0,
  isLendMoney: 1,
  work_start_time: '2020-12-07 11:06:22',
  work_end_time: '2020-12-25 11:06:22',
  apply_time: '2021-03-18 16:06:26',
  first_value_input: '6',
}

export const lendMoneyList = [
  {
    rowid: 5,
    id: '1e566543c44274eb1b49c00d53aa62ad1',
    ids: 38,
    enterprise_name: '海底捞火锅店',
    recruiting_position: '服务员',
    min_comprehensive_salary: 258258,
    max_comprehensive_salary: 23145,
    payway_id: '11',
    job_category_id: '1',
    create_time: '2020-12-07 11:06:22',
    status: 1,
    work_address_fulle_address: '安徽省合肥市合肥新站高新技术产业开发区三十头街道魏武大道',
    generation_instructions: '阿拉就么有咋啦啊集聚区NONO族',
    generation_of_commission: '12',
    fee_unit: 0,  //从这以下需要添加
    isLendMoney: 0,
    work_start_time: '2020-12-07 11:06:22',
    work_end_time: '',
    apply_time: '2021-03-18 16:06:26'
  },
  {
    rowid: 5,
    id: '2e566543c44274eb1b49c00d53aa62ad1',
    ids: 38,
    enterprise_name: '海底捞火锅店',
    recruiting_position: '服务员',
    min_comprehensive_salary: 258258,
    max_comprehensive_salary: 23145,
    payway_id: '11',
    job_category_id: '1',
    create_time: '2020-12-07 11:06:22',
    status: 1,
    work_address_fulle_address: '安徽省合肥市合肥新站高新技术产业开发区三十头街道魏武大道',
    generation_instructions: '阿拉就么有咋啦啊集聚区NONO族',
    generation_of_commission: '12',
    fee_unit: 0,
    isLendMoney: 0,
    work_start_time: '2020-12-07 11:06:22',
    work_end_time: '2020-12-25 11:06:22',
    apply_time: '2021-03-18 16:06:26'
  },
  {
    rowid: 5,
    id: '3e566543c44274eb1b49c00d53aa62ad1',
    ids: 38,
    enterprise_name: '海底捞火锅店',
    recruiting_position: '服务员',
    min_comprehensive_salary: 258258,
    max_comprehensive_salary: 23145,
    payway_id: '11',
    job_category_id: '1',
    create_time: '2020-12-07 11:06:22',
    status: 1,
    work_address_fulle_address: '安徽省合肥市合肥新站高新技术产业开发区三十头街道魏武大道',
    generation_instructions: '阿拉就么有咋啦啊集聚区NONO族',
    generation_of_commission: '12',
    fee_unit: 0,
    isLendMoney: 0,
    work_start_time: '2020-12-07 11:06:22',
    work_end_time: '2020-12-25 11:06:22',
    apply_time: '2021-03-18 16:06:26'
  },
  {
    rowid: 5,
    id: '4e566543c44274eb1b49c00d53aa62ad1',
    ids: 38,
    enterprise_name: '海底捞火锅店',
    recruiting_position: '服务员',
    min_comprehensive_salary: 258258,
    max_comprehensive_salary: 23145,
    payway_id: '11',
    job_category_id: '1',
    create_time: '2020-12-07 11:06:22',
    status: 1,
    work_address_fulle_address: '安徽省合肥市合肥新站高新技术产业开发区三十头街道魏武大道',
    generation_instructions: '阿拉就么有咋啦啊集聚区NONO族',
    generation_of_commission: '12',
    fee_unit: 0,
    isLendMoney: 0,
    work_start_time: '2020-12-07 11:06:22',
    work_end_time: '',
    apply_time: '2021-03-18 16:06:26'
  },
  {
    rowid: 5,
    id: '5e566543c44274eb1b49c00d53aa62ad1',
    ids: 38,
    enterprise_name: '海底捞火锅店',
    recruiting_position: '服务员',
    min_comprehensive_salary: 258258,
    max_comprehensive_salary: 23145,
    payway_id: '11',
    job_category_id: '1',
    create_time: '2020-12-07 11:06:22',
    status: 1,
    work_address_fulle_address: '安徽省合肥市合肥新站高新技术产业开发区三十头街道魏武大道',
    generation_instructions: '阿拉就么有咋啦啊集聚区NONO族',
    generation_of_commission: '12',
    fee_unit: 0,
    isLendMoney: 0,
    work_start_time: '2020-12-07 11:06:22',
    work_end_time: '',
    apply_time: '2021-03-18 16:06:26'
  }
]

export const unLendMoneyList = [
  {
    rowid: 5,
    id: '1e566543c44274eb1b49c00d53aa62ad1',
    ids: 38,
    enterprise_name: '海底捞火锅店',
    recruiting_position: '服务员',
    min_comprehensive_salary: 258258,
    max_comprehensive_salary: 23145,
    payway_id: '11',
    job_category_id: '1',
    create_time: '2020-12-07 11:06:22',
    status: 1,
    work_address_fulle_address: '安徽省合肥市合肥新站高新技术产业开发区三十头街道魏武大道',
    generation_instructions: '阿拉就么有咋啦啊集聚区NONO族',
    generation_of_commission: '12',
    fee_unit: 0,
    isLendMoney: 1,
    work_start_time: '2020-12-07 11:06:22',
    work_end_time: '',
    apply_time: '2021-03-18 16:06:26'
  },
  {
    rowid: 5,
    id: '2e566543c44274eb1b49c00d53aa62ad1',
    ids: 38,
    enterprise_name: '海底捞火锅店',
    recruiting_position: '服务员',
    min_comprehensive_salary: 258258,
    max_comprehensive_salary: 23145,
    payway_id: '11',
    job_category_id: '1',
    create_time: '2020-12-07 11:06:22',
    status: 1,
    work_address_fulle_address: '安徽省合肥市合肥新站高新技术产业开发区三十头街道魏武大道',
    generation_instructions: '阿拉就么有咋啦啊集聚区NONO族',
    generation_of_commission: '12',
    fee_unit: 0,
    isLendMoney: 1,
    work_start_time: '2020-12-07 11:06:22',
    work_end_time: '2020-12-25 11:06:22',
    apply_time: '2021-03-18 16:06:26'
  },
  {
    rowid: 5,
    id: '3e566543c44274eb1b49c00d53aa62ad1',
    ids: 38,
    enterprise_name: '海底捞火锅店',
    recruiting_position: '服务员',
    min_comprehensive_salary: 258258,
    max_comprehensive_salary: 23145,
    payway_id: '11',
    job_category_id: '1',
    create_time: '2020-12-07 11:06:22',
    status: 1,
    work_address_fulle_address: '安徽省合肥市合肥新站高新技术产业开发区三十头街道魏武大道',
    generation_instructions: '阿拉就么有咋啦啊集聚区NONO族',
    generation_of_commission: '12',
    fee_unit: 0,
    isLendMoney: 1,
    work_start_time: '2020-12-07 11:06:22',
    work_end_time: '2020-12-25 11:06:22',
    apply_time: '2021-03-18 16:06:26'
  },
  {
    rowid: 5,
    id: '4e566543c44274eb1b49c00d53aa62ad1',
    ids: 38,
    enterprise_name: '海底捞火锅店',
    recruiting_position: '服务员',
    min_comprehensive_salary: 258258,
    max_comprehensive_salary: 23145,
    payway_id: '11',
    job_category_id: '1',
    create_time: '2020-12-07 11:06:22',
    status: 1,
    work_address_fulle_address: '安徽省合肥市合肥新站高新技术产业开发区三十头街道魏武大道',
    generation_instructions: '阿拉就么有咋啦啊集聚区NONO族',
    generation_of_commission: '12',
    fee_unit: 0,
    isLendMoney: 1,
    work_start_time: '2020-12-07 11:06:22',
    work_end_time: '',
    apply_time: '2021-03-18 16:06:26'
  },
  {
    rowid: 5,
    id: '5e566543c44274eb1b49c00d53aa62ad1',
    ids: 38,
    enterprise_name: '海底捞火锅店',
    recruiting_position: '服务员',
    min_comprehensive_salary: 258258,
    max_comprehensive_salary: 23145,
    payway_id: '11',
    job_category_id: '1',
    create_time: '2020-12-07 11:06:22',
    status: 1,
    work_address_fulle_address: '安徽省合肥市合肥新站高新技术产业开发区三十头街道魏武大道',
    generation_instructions: '阿拉就么有咋啦啊集聚区NONO族',
    generation_of_commission: '12',
    fee_unit: 0,
    isLendMoney: 1,
    work_start_time: '2020-12-07 11:06:22',
    work_end_time: '',
    apply_time: '2021-03-18 16:06:26'
  }
]

// TODO: 以下数据需删除（取后台数据替换）

export const positionIdObj = {
  1: '两班倒',
  2: '三班倒',
  3: '长白班',
  4: '长夜班',
  5:'夜班',
  6:'管一餐',
  7:'管二餐',
  8:'管三餐',
  9:'管四餐',
  10:'管1餐',
  11:'管2餐',
  12:'管3餐',
  13:'管4餐',
}

export const classAttributeIdObj = {
  1: '坐班',
  2: '站班',
  3: "坐班 + 站班",
  4:'站立式',
  5:'走动式',
  6:'有坐有站',
  7:'站岗'
}

export const benefitsObj = {
  '1': '奖金',
  '2': '包吃',
  '3': '供吃',
  '4': '饭补',
  '5': '包住',
  '6': '供住',
  '7': '房补',
  '8': '社保',
  '9': '公积金',
  '10': '保险',
  '11': '话补',
  '12': '车补',
  '13': '是否可带手机',
  '14': '是否穿无尘服',
  '15': '其他福利',
  '16':'管住',
  '17':'通勤补贴'
}

export const paydayIdObj = {
  0: '日结',
  1: '周结',
  2: '月结',
  3: '年结',
  4:'工资月'
}

export const workingLifeIdObj = {
  1: '1年以下',
  2: '1-2年',
  3: '3-5年',
  4: '6-7年',
  5: '8-10年',
  6: '10年以上',
  7: '不限'
}

export const educationsObj = {
  1: '初中',
  2: '高中/中专',
  3: '大专',
  4: '本科',
  5: '硕士',
  6: '博士',
  7: '不限',
  0: ''
}

export const certificateTypesObj = {
  1: '身份证',
  2: '银行卡',
  3: '个人照片',
  4: '护照',
  5: '其他有效证件',
  0: '',
  6:'照片*',
  7:'相片*'
}

export const mapPageKeyword = {
  interview_address: '面试地址',
  work_address: '工作地址'
}

export const workStatus = {
  0: '未报名',
  1: '已报名',
  2: '已工作',
  3: '已离职'
}
